package com.study.modules.saas.repository.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.modules.saas.repository.model.UserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserDao extends BaseMapper<UserDO> {

    @Update("update `user` set last_login_time = CURRENT_TIMESTAMP WHERE uuid = #{uuid}")
    int updateUserLastLoginTime(@Param("uuid") String uuid);
}
